package com.ruoyi.finance.normalRecharge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.normalRecharge.mapper.FiNormalRechargeMapper;
import com.ruoyi.finance.normalRecharge.domain.FiNormalRecharge;
import com.ruoyi.finance.normalRecharge.service.IFiNormalRechargeService;

/**
 * 普通充值Service业务层处理
 * 
 * @author wangmh
 * @date 2023-09-17
 */
@Service
public class FiNormalRechargeServiceImpl implements IFiNormalRechargeService 
{
    @Autowired
    private FiNormalRechargeMapper fiNormalRechargeMapper;

    /**
     * 查询普通充值
     * 
     * @param id 普通充值主键
     * @return 普通充值
     */
    @Override
    public FiNormalRecharge selectFiNormalRechargeById(Long id)
    {
        return fiNormalRechargeMapper.selectFiNormalRechargeById(id);
    }

    /**
     * 查询普通充值列表
     * 
     * @param fiNormalRecharge 普通充值
     * @return 普通充值
     */
    @Override
    public List<FiNormalRecharge> selectFiNormalRechargeList(FiNormalRecharge fiNormalRecharge)
    {
        return fiNormalRechargeMapper.selectFiNormalRechargeList(fiNormalRecharge);
    }

    /**
     * 新增普通充值
     * 
     * @param fiNormalRecharge 普通充值
     * @return 结果
     */
    @Override
    public int insertFiNormalRecharge(FiNormalRecharge fiNormalRecharge)
    {
        return fiNormalRechargeMapper.insertFiNormalRecharge(fiNormalRecharge);
    }

    /**
     * 修改普通充值
     * 
     * @param fiNormalRecharge 普通充值
     * @return 结果
     */
    @Override
    public int updateFiNormalRecharge(FiNormalRecharge fiNormalRecharge)
    {
        return fiNormalRechargeMapper.updateFiNormalRecharge(fiNormalRecharge);
    }

    /**
     * 批量删除普通充值
     * 
     * @param ids 需要删除的普通充值主键
     * @return 结果
     */
    @Override
    public int deleteFiNormalRechargeByIds(Long[] ids)
    {
        return fiNormalRechargeMapper.deleteFiNormalRechargeByIds(ids);
    }

    /**
     * 删除普通充值信息
     * 
     * @param id 普通充值主键
     * @return 结果
     */
    @Override
    public int deleteFiNormalRechargeById(Long id)
    {
        return fiNormalRechargeMapper.deleteFiNormalRechargeById(id);
    }
}
